package com.itheima.pojo;

import java.util.Date;

public class LoginData {
    // id 主键
    private Integer id;
    // 用户id
    private Integer userId;
    // 登录时间
    private Date loginTime;
    // 退出时间
    private Date logoutTime;
    // IP地址
    private String ip;

    public LoginData() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }

    public Date getLogoutTime() {
        return logoutTime;
    }

    public void setLogoutTime(Date logoutTime) {
        this.logoutTime = logoutTime;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    @Override
    public String toString() {
        return "LoginData{" +
                "id=" + id +
                ", userId=" + userId +
                ", loginTime=" + loginTime +
                ", logoutTime=" + logoutTime +
                ", ip='" + ip + '\'' +
                '}';
    }
}
